﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<TITLE>车间配置列表</TITLE>
<link href="<%=path %>/css/BackStyle.css" rel="stylesheet" type="text/css" />
<script>
	function delworkshop(code)
{
	if(window.confirm("确定要删除吗？"))
	{
		window.document.getElementById("delwork").value=code;
		frm.submit();
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
</script>
</HEAD>
<BODY  >
<FORM name="frm" action="<%=path %>/workshop.do?method=delWorkShop" method="post" >
<input type="hidden" id="delwork" name="delwork" value="" />
<TABLE width="100%" border=0 cellpadding="0" cellSpacing=0 >
  <TBODY>
  <TR>
    <TD vAlign=top><TABLE cellSpacing=0 cellPadding=0 width="90%" align=center border=0>
        <TBODY>
        <TR></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width=10><IMG height=35 alt="" src="<%=path%>/img/table/index_08.gif" 
            width=10></TD>
          <TD background=<%=path%>/img/table/index_09.gif>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD width=25><IMG height=18 src="<%=path%>/img/table/sm_05.gif" 
                  width=18></TD>
                <TD class=title>车 间 配 置 列 表</TD>
              </TR></TBODY></TABLE></TD>
          <TD width=5><IMG height=35 alt="" src="<%=path%>/img/table/index_10.gif" 
            width=5></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width=3 background=<%=path%>/img/table/index_12.gif><IMG height=1 
            src="<%=path%>/img/table/spacer.gif" width=1></TD>
          <TD bgColor=#DAEDF8>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#8ECAEB 
            border=0>
              <TBODY>
              <TR bgColor=#e2e0d3>
                <TD bgcolor="#8ECAEB">
                        <TABLE cellSpacing=1 cellPadding=3 width="100%" bgColor=#8ECAEB 
            border=0>
                  <TBODY>
                    <TR bgColor=#e2e0d3>
                      <TD bgcolor="#C6E4F4" class=s9>车间编号</TD>
                      <TD bgcolor="#C6E4F4" class=s9>车间名称</TD>
                      <TD bgcolor="#C6E4F4" class=s9><font color="#000000">终端IP</font></TD>
                      <TD bgcolor="#C6E4F4" class=s9>负责人</TD>
                      <TD bgcolor="#C6E4F4" class=s9>操作</TD>
                      </TR>
                      <c:forEach items="${workshops}" var="workshop">
                    <TR bgColor=#f8f7f2>
                      <TD bgcolor="#FFFFFF" class="s19">${workshop.workShopCode }&nbsp;</TD>
                      <TD bgcolor="#FFFFFF" class="s19">${workshop.workShopName }&nbsp;</TD>
                      <TD bgcolor="#FFFFFF" class="s19">${workshop.ipAddress }&nbsp;</TD>
                      <TD bgcolor="#FFFFFF" class=s19>${workshop.logName }&nbsp;</TD>
                      <TD bgcolor="#FFFFFF" class=s19><img src="<%=path%>/img/table/delete.gif" width="60" height="20" border="0" style=cursor:hand  onclick="delworkshop('${workshop.workShopCode }');" />&nbsp;</TD>
                      </TR>
                      </c:forEach>
                  </TBODY>
                </TABLE>
                     <TABLE cellSpacing=5 cellPadding=0 width="100%" border=0 bgcolor="#DAEDF8">
              <TBODY>
              <TR >
                <TD align="center"><img src="<%=path%>/img/table/add.gif" alt="" width="60" height="20" border="0" style="cursor:hand" onclick="MM_openBrWindow('<%=path%>/html/user manage/cj_cs deploy.jsp','车间参数配置','width=500,height=175');" /><img src="<%=path%>/img/table/close.gif" width="60" height="20" border="0" style=cursor:hand  onclick="window.opener = null;  window.close();" /></TD>
                </TR></TBODY></TABLE>
                 </TD>
              </TR>
              </TBODY></TABLE>
            </TD>
          <TD width=3 background=<%=path%>/img/table/index_15.gif><IMG height=1 
            src="<%=path%>/img/table/spacer.gif" width=1></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width=10><IMG height=15 alt="" src="<%=path%>/img/table/index_21.gif" 
            width=10></TD>
          <TD background=<%=path%>/img/table/index_22.gif height=15><IMG height=1 
            src="<%=path%>/img/table/spacer.gif" width=1></TD>
<TD width=5><IMG height=15 alt="" src="<%=path%>/img/table/index_23.gif" 
            width=5></TD></TR></TBODY></TABLE></TR></TBODY></TABLE></FORM></BODY></HTML>
